package com.sunnyweather.android.logic.model;

import java.util.List;

public class PlaceResponse {
    private String status;
    private List<Place> places;


    public PlaceResponse() {
    }

    public PlaceResponse(String status, List<Place> places) {
        this.status = status;
        this.places = places;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public List<Place> getPlaces() {
        return places;
    }

    public void setPlaces(List<Place> places) {
        this.places = places;
    }

    @Override
    public String toString() {
        return "PlaceResponse{" +
                "status='" + status + '\'' +
                ", places=" + places +
                '}';
    }


     public static class Place {
        private String name;
        private Location location;

         public Place(String name, Location location) {
             this.name = name;
             this.location = location;
         }

         public String getName() {
             return name;
         }

         public void setName(String name) {
             this.name = name;
         }

         public Location getLocation() {
             return location;
         }

         public void setLocation(Location location) {
             this.location = location;
         }

         @Override
         public String toString() {
             return "Place{" +
                     "name='" + name + '\'' +
                     ", location=" + location +
                     '}';
         }
     }


     public static class Location {
        private String lng;
        private String lat;

        public Location() {
        }

         public Location(String lng, String lat) {
             this.lng = lng;
             this.lat = lat;
         }

         public String getLng() {
             return lng;
         }

         public void setLng(String lng) {
             this.lng = lng;
         }

         public String getLat() {
             return lat;
         }

         public void setLat(String lat) {
             this.lat = lat;
         }

         @Override
         public String toString() {
             return "Location{" +
                     "lng='" + lng + '\'' +
                     ", lat='" + lat + '\'' +
                     '}';
         }
     }

}
